package com.twu.biblioteca;

/**
 * Created with IntelliJ IDEA.
 * User: Hugo
 * Date: 01/02/13
 * Time: 18:28
 * To change this template use File | Settings | File Templates.
 */
public enum ErrorMessages {
    NOT_LOGGED_IN(0,"Please Login to complete this operation");

    private final int code;
    private final String description;

    private ErrorMessages(int code, String description) {
        this.code = code;
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public int getCode() {
        return code;
    }

    @Override
    public String toString() {
        return description;
    }
}
